#include "upload.h"
#include "ui_upload.h"

Upload::Upload(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Upload)
{
    ui->setupUi(this);
    ui->warning->hide();
}

Upload::~Upload()
{
    delete ui;
}

void Upload::on_return_2_clicked()
{
    this->hide();
    Admin *m=new Admin;
    m->show();
}


void Upload::on_choose_clicked()
{
    QString FileName= QFileDialog::getOpenFileName(this, "选择文件",
                                                    "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}",
                                                    tr("Images (*.txt)"));
    ui->file->setText(FileName);
}

